home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2934 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.genie.net!usenet
  2. From: i.einman@genie.com (IAN J. EINMAN)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga Memory Map Needed! / ExecBase
  5. Date: 7 Feb 1996 07:04:12 GMT
  6. Organization: via GEnie Services (1-800-638-9636 or info@genie.com)
  7. Sender: i.einman@genie.com (IAN J. EINMAN)
  8. Message-ID: <4f9itc$ld8@rock101.genie.net>
  9. NNTP-Posting-Host: rock103.is.ge.com
  10.  
  11. >>True, but interrupt programming is something that should be hidden
  12. in the os. No application needs to know about interrupts, I think.
  13. So it's allright if internally the os uses absolute addresses, but
  14. there is no need to make anything external rely on them. Or even
  15. know about them.
  16.  
  17.  
  18. ExecBase being absolute:  It has to be!  The application MUST know exactly where Exec
  19. is at.  The OpenLibrary function is in Exec, so if Exec was an openable library with
  20. a variable base address, this would be a paradox.
  21.  
  22. If the ExecBase was obtained in a different way, how?  If it moved around, how could
  23. you find it?  It is virtually impossible to not have at least one absolute address in
  24. a system.  The only way to circumvent it would be to pass the ExecBase pointer in a
  25. register to the program when it first starts... but that wouldn't be too platform
  26. independent either.
  27.  
  28. There is NO way to run a program that accesses any OS function without relying on
  29. either: fixed addresses, fixed register(s), or fixed interrupts.  (like the Mac;
  30. 0xA000 line interrupts call system functions.)
  31.  
  32.